//Created by Sean Yow
Ext.define("MajorProjectSenchaTouch.view.EResourcesModule.EBooksSearch",{
    extend: 'Ext.Panel',
    xtype: 'basicebooksfilter',	
    requires: [
    'Ext.field.Toggle', 'Ext.field.Search'
    ],
    config:{
		// cls: 'backgroundRightPanel',
        xtype: 'panel',
        id: 'eBooksbasicPanel',
		
        items: [
        {     
            html: ['<header class="basicTitle">eBooks Search</header>']
        },
        {
            xtype: 'panel',
            id: 'eBooksSearchPanWrapper',
            items: [
            {
                xtype: 'searchfield',
                name : 'search',
                id: 'ebookssearchfield',
                placeHolder: 'Search'
            }, 
            {
                xtype: 'selectfield',
                name: 'type',
                ui: 'light',
                usePicker: true,
                id: 'ebooksselectfield',
                options: [
                {
                    text: 'By Keyword Anywhere',
                    value: 'KeywordAnywhere'
                },
                {
                    text: 'By Author',
                    value: 'Author'
                },
                {
                    text: 'By Title',
                    value: 'Title'
                },
                {
                    text: 'By Subject',
                    value: 'Subject'
                }
                ]
            },
            ]
        },
        {
            xtype: 'panel',
            id: 'eBooksSearchBtnWrapper',
            items: [{
                xtype: 'button',
                id: 'basicEbooksSearchBtn',
                pressedCls:'rsBtnClicked',
                labelWrap: true,
                ui: 'normal',
                text: 'Search!',
                height: '6.5em',
                action: 'goSearchEbooksResult'
            }]
        },
        {
            xtype:'panel',
            id: 'eBooksTogglePanWrapper',
            layout: {
                type: 'vbox'
            },
            items:[
            {
                xtype: 'togglefield',
                label: 'Search as a Phrase',
                id: 'ebooksFieldbasic',
                name: 'toggle',
                labelWidth: '13.3em',
                labelWrap: true
            }
            ]
        },
        ]
    }
});